//
//  EpointView.m
//  EpointFrame5
//
//  Created by 李亚春 on 14-1-7.
//  Copyright (c) 2014年 Epoint. All rights reserved.
//

#import "EpointView.h"

@implementation EpointView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    self.backgroundColor = [UIColor redColor];
    NSLog(@"touchesBegan");
}

-(void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
{
    self.backgroundColor = [UIColor clearColor];
     NSLog(@"touchesCancelled");
}

-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
    self.backgroundColor = [UIColor clearColor];
     NSLog(@"touchesEnded");
}

-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
     NSLog(@"touchesMoved");
}

//-(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
//{
//    
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
